#include "stdafx.h"
#include "FaultFactory.h"

#include "..\Generators\Fault.h"
#include "../../../Framework/Toolkit.h"

using namespace Framework;

namespace MyGame {

FaultFactory::FaultFactory(void) {
}

FaultFactory::~FaultFactory(void) {
}

Generator* FaultFactory::Generate() const {
    Fault* fault = new Fault();
    fault->SetBlend((FLOAT)Toolkit::RandomFloat(0, 0.1f));
    fault->SetLines(Toolkit::RandomInt(1, 10));
    fault->SetMaxDisplacement((FLOAT)Toolkit::RandomFloat());
    fault->SetMinDisplacement((FLOAT)Toolkit::RandomFloat());
    return fault;
}

}
